package _32define;

import java.util.ArrayList ;
import java.util.stream.Collectors;

public class Unique  {
    public static void main(String[] args) {
        String originalString = "abcqweracb";
        ArrayList<Character> charList = new ArrayList<>();
        for (char c : originalString.toCharArray ()) {
            if (!charList.contains (c)) {
                charList.add (c);
            }
        }
        String resultString = String.valueOf(charList.stream ().collect(Collectors.toList()));
        System.out.println (resultString);
    }
}
